package com.entity;

import java.util.ArrayList;
import java.util.List;

public class MembertypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public MembertypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMtnoIsNull() {
            addCriterion("mtno is null");
            return (Criteria) this;
        }

        public Criteria andMtnoIsNotNull() {
            addCriterion("mtno is not null");
            return (Criteria) this;
        }

        public Criteria andMtnoEqualTo(String value) {
            addCriterion("mtno =", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotEqualTo(String value) {
            addCriterion("mtno <>", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoGreaterThan(String value) {
            addCriterion("mtno >", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoGreaterThanOrEqualTo(String value) {
            addCriterion("mtno >=", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLessThan(String value) {
            addCriterion("mtno <", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLessThanOrEqualTo(String value) {
            addCriterion("mtno <=", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLike(String value) {
            addCriterion("mtno like", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotLike(String value) {
            addCriterion("mtno not like", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoIn(List<String> values) {
            addCriterion("mtno in", values, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotIn(List<String> values) {
            addCriterion("mtno not in", values, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoBetween(String value1, String value2) {
            addCriterion("mtno between", value1, value2, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotBetween(String value1, String value2) {
            addCriterion("mtno not between", value1, value2, "mtno");
            return (Criteria) this;
        }

        public Criteria andMimgIsNull() {
            addCriterion("mImg is null");
            return (Criteria) this;
        }

        public Criteria andMimgIsNotNull() {
            addCriterion("mImg is not null");
            return (Criteria) this;
        }

        public Criteria andMimgEqualTo(String value) {
            addCriterion("mImg =", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgNotEqualTo(String value) {
            addCriterion("mImg <>", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgGreaterThan(String value) {
            addCriterion("mImg >", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgGreaterThanOrEqualTo(String value) {
            addCriterion("mImg >=", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgLessThan(String value) {
            addCriterion("mImg <", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgLessThanOrEqualTo(String value) {
            addCriterion("mImg <=", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgLike(String value) {
            addCriterion("mImg like", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgNotLike(String value) {
            addCriterion("mImg not like", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgIn(List<String> values) {
            addCriterion("mImg in", values, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgNotIn(List<String> values) {
            addCriterion("mImg not in", values, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgBetween(String value1, String value2) {
            addCriterion("mImg between", value1, value2, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgNotBetween(String value1, String value2) {
            addCriterion("mImg not between", value1, value2, "mimg");
            return (Criteria) this;
        }

        public Criteria andMtnameIsNull() {
            addCriterion("mtName is null");
            return (Criteria) this;
        }

        public Criteria andMtnameIsNotNull() {
            addCriterion("mtName is not null");
            return (Criteria) this;
        }

        public Criteria andMtnameEqualTo(String value) {
            addCriterion("mtName =", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameNotEqualTo(String value) {
            addCriterion("mtName <>", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameGreaterThan(String value) {
            addCriterion("mtName >", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameGreaterThanOrEqualTo(String value) {
            addCriterion("mtName >=", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameLessThan(String value) {
            addCriterion("mtName <", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameLessThanOrEqualTo(String value) {
            addCriterion("mtName <=", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameLike(String value) {
            addCriterion("mtName like", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameNotLike(String value) {
            addCriterion("mtName not like", value, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameIn(List<String> values) {
            addCriterion("mtName in", values, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameNotIn(List<String> values) {
            addCriterion("mtName not in", values, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameBetween(String value1, String value2) {
            addCriterion("mtName between", value1, value2, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtnameNotBetween(String value1, String value2) {
            addCriterion("mtName not between", value1, value2, "mtname");
            return (Criteria) this;
        }

        public Criteria andMtdescIsNull() {
            addCriterion("mtDesc is null");
            return (Criteria) this;
        }

        public Criteria andMtdescIsNotNull() {
            addCriterion("mtDesc is not null");
            return (Criteria) this;
        }

        public Criteria andMtdescEqualTo(String value) {
            addCriterion("mtDesc =", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotEqualTo(String value) {
            addCriterion("mtDesc <>", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescGreaterThan(String value) {
            addCriterion("mtDesc >", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescGreaterThanOrEqualTo(String value) {
            addCriterion("mtDesc >=", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescLessThan(String value) {
            addCriterion("mtDesc <", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescLessThanOrEqualTo(String value) {
            addCriterion("mtDesc <=", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescLike(String value) {
            addCriterion("mtDesc like", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotLike(String value) {
            addCriterion("mtDesc not like", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescIn(List<String> values) {
            addCriterion("mtDesc in", values, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotIn(List<String> values) {
            addCriterion("mtDesc not in", values, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescBetween(String value1, String value2) {
            addCriterion("mtDesc between", value1, value2, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotBetween(String value1, String value2) {
            addCriterion("mtDesc not between", value1, value2, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtstateIsNull() {
            addCriterion("mtState is null");
            return (Criteria) this;
        }

        public Criteria andMtstateIsNotNull() {
            addCriterion("mtState is not null");
            return (Criteria) this;
        }

        public Criteria andMtstateEqualTo(String value) {
            addCriterion("mtState =", value, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateNotEqualTo(String value) {
            addCriterion("mtState <>", value, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateGreaterThan(String value) {
            addCriterion("mtState >", value, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateGreaterThanOrEqualTo(String value) {
            addCriterion("mtState >=", value, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateLessThan(String value) {
            addCriterion("mtState <", value, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateLessThanOrEqualTo(String value) {
            addCriterion("mtState <=", value, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateLike(String value) {
            addCriterion("mtState like", value, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateNotLike(String value) {
            addCriterion("mtState not like", value, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateIn(List<String> values) {
            addCriterion("mtState in", values, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateNotIn(List<String> values) {
            addCriterion("mtState not in", values, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateBetween(String value1, String value2) {
            addCriterion("mtState between", value1, value2, "mtstate");
            return (Criteria) this;
        }

        public Criteria andMtstateNotBetween(String value1, String value2) {
            addCriterion("mtState not between", value1, value2, "mtstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}